package com.kamistoat.meimeimall.meimeimallorder.stateMachine;

/**
 * 用于驱动下单-支付状态机发生状态改变的事件
 */
public enum OrderEventEnum {
    CREATE(0, "下单动作"),
    PAY(1, "支付动作"),
    ACTIVE_CANCEL(2, "主动取消"),
    TIMEOUT_CANCEL(3, "超时取消");

    private Integer code;
    private String msg;

    OrderEventEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
